package com.example.dao;

import com.example.domain.Medication;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface MedicationMapper {

    //    @Select("select * from medication")
    List<Medication> listAll(Map map);


    //    @Select("select medicine_id,medicine_name,medicine_price,inventory from medication where medicine_id=#{medicine_id}")
    Medication getById(Long id);


    int insert(Medication medication);
    int update(Medication medication);


}